<template>
  <div>
    <h2>ts目录的嵌套文件</h2>
    <hr />
    {{ info }}
    {{ info1 }}
    <nuxt-link to="/123" class="button--green">跳转动态路由123</nuxt-link>
    <nuxt-child />
  </div>
</template>

<script>
export default {
  name: 'Ts',
  transition: 'single',
  async asyncData({ $axios, params, error }) {
    // console.log('error: ', error)
    console.log('params: ', params)
    const { data } = await $axios.get('https://api.chengsong.info')
    return { info1: data }
  },
  data() {
    return {
      info: null,
    }
  },
  mounted() {
    this.info = this.$store.state.todos.list
    this.$myInjectedFunction('jcs')
  },
}
</script>
<style lang="" scoped></style>
